package com.chen.popj.vo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserVO {
    @Pattern(regexp = "^\\S{2,10}$")
    private String username; //用户名
    private String avatar;//头像
    @Email
    private String email;//电子邮箱
}
